const mutations = {
  // 获取首页电影列表数据
  getMoviesData(state, payload) {
    state.moviesList = payload.result;
    state.movieIds = payload.ids;
    state.startId = payload.result.length;
  },

  // 获取上拉加载电影列表数据
  getPullData(state, payload) {
    state.moviesList = state.moviesList.concat(payload.result);
    state.startId += state.size;
    console.log(state.moviesList);
  },
};

export default mutations;
